package com.jdz.gxq.info.admin.role.form;

import java.util.List;

import jp.terasoluna.fw.web.struts.form.ValidatorActionFormEx;

import com.jdz.gxq.info.admin.role.bo.Role;
import com.jdz.gxq.info.admin.role.bo.RoleMenu;
import com.jdz.gxq.info.common.bo.AutoArrayList;

public class RoleForm extends ValidatorActionFormEx {

	private static final long serialVersionUID = 1L;
	
	private int id = 0;
	
	private String name;

	private int pageIndex;
	
	// 一定要new
	private Role role = new Role();
	
	List<RoleMenu> roleMenuList = new AutoArrayList<RoleMenu>(RoleMenu.class);
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public List<RoleMenu> getRoleMenuList() {
		return roleMenuList;
	}

	public void setRoleMenuList(List<RoleMenu> roleMenuList) {
		this.roleMenuList = roleMenuList;
	}
}
